package com.company.book_store.pojo;

public class Book {
    int id;
    String book_name;
    String book_author;
    String book_classes;
    String book_price;
    String book_public;
    int book_surplus;

    public Book(int id, String book_name, String book_author, String book_classes, String book_price, String book_public, int book_surplus) {
        this.id = id;
        this.book_name = book_name;
        this.book_author = book_author;
        this.book_classes = book_classes;
        this.book_price = book_price;
        this.book_public = book_public;
        this.book_surplus = book_surplus;
    }

    public Book(String book_name, String book_author, String book_classes, String book_price, String book_public, int book_surplus) {
        this.book_name = book_name;
        this.book_author = book_author;
        this.book_classes = book_classes;
        this.book_price = book_price;
        this.book_public = book_public;
        this.book_surplus = book_surplus;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Book() {
    }

    public String getBook_name() {
        return book_name;
    }

    public String getBook_author() {
        return book_author;
    }

    public String getBook_classes() {
        return book_classes;
    }

    public String getBook_price() {
        return book_price;
    }

    public String getBook_public() {
        return book_public;
    }


    public void setBook_name(String book_name) {
        this.book_name = book_name;
    }

    public void setBook_author(String book_author) {
        this.book_author = book_author;
    }

    public void setBook_classes(String book_classes) {
        this.book_classes = book_classes;
    }

    public void setBook_price(String book_price) {
        this.book_price = book_price;
    }

    public void setBook_public(String book_public) {
        this.book_public = book_public;
    }

    public int getBook_surplus() {
        return book_surplus;
    }

    public void setBook_surplus(int book_surplus) {
        this.book_surplus = book_surplus;
    }




    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", book_name='" + book_name + '\'' +
                ", book_author='" + book_author + '\'' +
                ", book_classes='" + book_classes + '\'' +
                ", book_price='" + book_price + '\'' +
                ", book_public='" + book_public + '\'' +
                ", book_surplus=" + book_surplus +
                '}';
    }
}
